<div id="main_form">
<h3><span class="color_green">Category</span></h3>
<fieldset>
	<?php if(isset($category_data) && count($category_data) > 0){ ?>	
	<ol>
		<?php foreach($category_data as $key => $val){ ?>
		<li>	
			<a title="Begin test for <?php echo htmlentities($val['category_name']); ?>" href="<?php echo site_url('/questions/start_test/'.$val['category_id']) ?>"><?php echo htmlentities($val['category_name']); ?></a>			
		</li>
		<?php }//EOF foreach ?>
	</ol>
	<?php }else{ 
			if(isset($no_questions) && $no_questions == true){ ?>
				<p>Ooops!! no question(s) found for this category. <br />Kindly try again later or be an expert of a different category.</p>
		<?php }else{ ?>
				<p>Ooops!! no category found for today's test. <br />Kindly try again later...</p>	
		<?php }//EOF if ?>
		<br />
<p><a href="<?php echo site_url('/questions/category'); ?>">Click here to choose another category.</a></p>
		<?php }//EOF if ?>
</fieldset>
</div>